<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>属性选择器</title>
    <style>
        [title=greeting]{
            border: 2px solid darkgreen;
        }
        [lang|=en]{
            color: blue;
        }
        input[type="button"]{
            width: 120px;
            margin: 12px;
            display: block;
        }
        input[type="button"]:hover{
            background-color: #3e8e41;
        }
    </style>
</head>
<body>
    <p title="greeting">MCSOFT</p>
    <p lang="en">Hello!</p>
    <input type="button" value="提交">
</body>
</html>